/**
*
* @file    LPRYxxxAL.h
* @author  IMS SystemsLab - ART
* @version V1.0
* @date    March 2010
* @brief   Header for LPRYxxxAL.c file  of iNEMO_v2
* @details
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*
*
* THIS SOURCE CODE IS PROTECTED BY A LICENSE.
* FOR MORE INFORMATION PLEASE CAREFULLY READ THE LICENSE AGREEMENT FILE LOCATED
* IN THE ROOT DIRECTORY OF THIS FIRMWARE PACKAGE.
* <h2><center>&copy; COPYRIGHT 2009 STMicroelectronics</center></h2>
*
*/



/** Define to prevent recursive inclusion */
#ifndef __LPRYxxxAL_H
#define __LPRYxxx0AL_H

/** Includes*/
#include "stm32f10x.h"
#include "HAL_LPRYxxxAL.h"


/**
 * @addtogroup LPR430AL_LY330ALH
 * @{
 */


/** @defgroup Gyro_Sensitivity_Define
  * @{
  */

#define Gyro_Sensitivity_Yaw       3.752   /*!< Yaw axis Sensitivity [ mV/dps ] see LY330ALH datasheet */
#define Gyro_SensitivityLSB_Yaw     4.62    /*!< Yaw axis Sensitivity [ LSB/dps] */

#define Gyro_Sensitivity_PR       3.392    /*!< Roll and Pitch axis Sensitivity [ mV/dps ]see LPR430AL datasheet*/
#define Gyro_SensitivityLSB_PR     4.24   /*!< Roll and Pitch axis Sensitivity [ LSB/dps ]*/

#define BufferSize  5
#define AxisNumber  3
/**
*@}
*/



/** @defgroup Gyro_Functions
  * @{
  */
void LPRYxxxAL_ADC_Init(void);
void LPRYxxxAL_DMA_Init(void);
void LPRYxxxAL_PD_ST_Init(void);
void LPRYxxxAL_On(void);
void LPRYxxxAL_Off(void);
void LPRYxxxAL_ST_On(void);
void LPRYxxxAL_ST_Off(void);
void LPRYxxxAL_Read(u16* out);
void LPRYxxxAL_Read_Rate(s16* out);
void LPRYxxxAL_Read_RawRate(s16* out);
/**
  * @}
  */

/**
 * @}
 */
#endif /* __LPRYxxxAL_H */


/******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/
